#include "application.h"
#include "media_controller.h"

MediaController * media_controller_new( ) {
	return (MediaController *) malloc(sizeof(MediaController));
}

void media_controller_init(Application *application) {
	gst_init(&application->argc, &application->argv);
	application->media_controller->pipeline = gst_pipeline_new("pipeline");
	application->media_controller->source = gst_element_factory_make("v4l2src", "source");
	application->media_controller->filter = gst_element_factory_make("identity", "filter");
	application->media_controller->sink = gst_element_factory_make("autovideosink", "sink");
}
